from typing import Optional, List
import os

AK = '2jCwbiCWReSVlPbt53f9pYhP'
SK = 'dwJ8BULLCsBMXsmtjyxNI8hkw4y0HPXq'
os.environ['QIANFAN_AK'] = AK
os.environ['QIANFAN_SK'] = SK
from langchain.memory import ChatMessageHistory

history = ChatMessageHistory()
history.add_user_message('在吗?')
history.add_ai_message('有什么事?')
print(history.messages)
